import { ReactComponent as SearchIcon } from '@/mobile/assets/search.svg'
import { flexCenter } from '@/mobile/styles'
import { ContactTypes } from './contact-types'

export function Contacts() {
  return <div css={s.wrap}>
    <h2>平台RPA机器人</h2>

    <div css={s.search}>
      <SearchIcon />
      <span>搜索</span>
    </div>

    <ContactTypes />
  </div>
}

const s = {
  wrap: css`
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    & > h2 {
      font-size: 20px;
      margin: 12px 0 22px;
      text-align: center;
    }
    & > .adm-search-bar {
      input {
        text-align: center;
      }
    }
    & > .adm-tabs .adm-tabs-tab {
      --title-font-size: 14px;
      padding: 17px 0 6px;
    }
  `,

  search: css`
    ${flexCenter};
    background-color: #f5f5f5;
    border-radius: 4px;
    color: rgba(0, 0, 0, 0.38);
    column-gap: 8px;
    font-size: 15px;
    height: 35px;
    margin: 0 16px;
  `,
}
